<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>ajax-error</title>
    <script th:src="@{/static/js/jquery-3.3.1.min.js}"></script>
</head>
<body>
<h1>测试ajax错误异常</h1>
<button onclick="ajax()">发送ajax请求</button>
<script th:src="@{/static/js/ajaxerror.js}"></script>
</body>
</html>